<?php
class ScheduleModel extends BaseModel
{
	var $table  = 'schedule';
	var $prikey = 'schedule_id';
	var $_name  = 'schedule';
	var $alias  = 'schedule';
	var $_relation = array(
			'has_member' => array(
				'model' => 'member',
				'type' => HAS_ONE,
				'foreign_key'   => 'user_id',
				'refer_key'=>'consumer_id'
			),
	);
}